SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS OFF
GO

/*
----------------------------------------------------------------------------------------------------

-- Created By:  ()
-- Purpose: Updates a record in the Contact table
----------------------------------------------------------------------------------------------------
*/


CREATE PROCEDURE dbo.Contact_Update
(

	@Id int   ,

	@FullName nvarchar (50)  ,

	@Email nvarchar (50)  ,

	@Phone nvarchar (20)  ,

	@Description nvarchar (500)  ,

	@ContactType varchar (20)  ,

	@CreatedDate datetime   ,

	@UpdatedDate datetime   ,

	@CreatedUser varchar (50)  ,

	@UpdatedUser varchar (50)  
)
AS


				
				
				-- Modify the updatable columns
				UPDATE
					[dbo].[Contact]
				SET
					[FullName] = @FullName
					,[Email] = @Email
					,[Phone] = @Phone
					,[Description] = @Description
					,[ContactType] = @ContactType
					,[CreatedDate] = @CreatedDate
					,[UpdatedDate] = @UpdatedDate
					,[CreatedUser] = @CreatedUser
					,[UpdatedUser] = @UpdatedUser
				WHERE
[Id] = @Id 
				
			

GO
